<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button  id="btn"> 页面跳转
        </button>
        <div  id="timer">
            </div>
</body>
<script>
    // js实现页面的跳转过程

    var btn = document.getElementById("btn");
    btn.onclick = function(){
        window.location.href = "http://www.edu2act.cn/task/list/";
    }

    // 在timer 中显示倒计时 10秒钟， 时间到时，跳转到百度的首页
    var timer = document.getElementById("timer");
    var count = 10;
    var intervalId = setInterval(function(){
        count = count -1;
        timer.innerHTML = count +"秒后跳转到标度";
        if (count==0) {
            clearInterval(intervalId);
            location.href="http://www.edu2act.cn/task/list/";

            
        }
    },1000)

 
</script>
</html>